<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改车位信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-carlot-edit" th:object="${fzCarlot}">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">车位id：</label>
                <div class="col-sm-8">
                    <input name="carLotId" readonly="readonly" th:field="*{carLotId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">停车场编号：</label>
                <div class="col-sm-8">
                    <select id="carParkId" readonly="true" class="form-control m-b" th:field="*{carParkId}"  name="carParkId">
                        <option value="">所有</option>
                        <option th:each="park : ${carparkEdit}"  th:text="${park.carParkNum}" th:value="${park.carParkId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">车位编号：</label>
                <div class="col-sm-8">
                    <input name="carLotNum" th:field="*{carLotNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">车位状态：</label>
                <div class="col-sm-8">
                    <select name="carLotState" th:field="*{carLotState}" class="form-control m-b" th:with="type=${@dict.getType('car_lot_type')}">
                        <option value="">所有</option>
                        <option th:each="dict : ${type}"  th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">面积：</label>
                <div class="col-sm-8">
                    <input name="tmoa" th:field="*{tmoa}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text" >
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/carlot";
        $("#form-carlot-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-carlot-edit').serialize());
            }
        }
    </script>
</body>
</html>